<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <style type="text/css">
    		@import "css/table.css";
		</style>
   </head>
  
  <body>
   <s:form action="" method="post">
    <table width="80%" align="center">
      <tr >
         <th>ID </th>
         <th>用户名</th>
         <th>姓名</th>
         <th>所属公司</th>
         <th>职位</th>
        
         <th>编辑 </th>
         <th>删除 </th>
         <th> 权限</th>
        </tr>
       <s:iterator id="list" value="list" >
        <tr >
         <td><s:property  value="id"/> </td>
         <td><s:property  value="name"/> </td>
         <td><s:property  value="nameZh"/> </td>
         <td> <s:select theme="simple" list="#session.subcom_list" name="comId" listKey="id" listValue="comName" headerValue="comId" />  </td>
         <td><s:property  value="position"/> </td>
        
         <td>
          <a href="registerAction!findbyid.action?id=<s:property value="id"/>">编辑</a>
         </td>
         <td>
          <a href="registerAction!delete.action?id=<s:property value="id"/>">删除</a> 
         </td>
          <td>
          <a href="UserRightAction!findbyid.action?userId=<s:property value="id"/>">权限</a> 
         </td>
        </tr>
       </s:iterator>
    </table>
    </s:form>

  </body>
</html>
